<?php
function smarty_function_debug2($params){
	//if ($_SERVER['SERVER_ADMIN']!='valdas@technostudija.lt' && $_SERVER['SERVER_ADMIN']!='ratkevicius@gmail.com' && !isset($_GET['debug'])) return;
	extract($params);	
	if (!isset($var)) $var = "";
	if (!isset($name)) $name = "";
	if (!isset($focus)) $focus = "";
	$var=addslashes(preg_replace("/[\n\r]+/","",nl2br(htmlspecialchars(print_r($var,true)))));	
	$name=addslashes(preg_replace("/[\n\r]+/","",$name));
	//, 
	?>
<script language="javascript1.4" type="text/javascript" src="_tvs_system_core_/js/debug.js"></script>
<script language="javascript1.4" type="text/javascript">
make_debug ('<? echo $var; ?>','<? echo addslashes ($name) ?>','<? echo $focus ?>')
</script>
	<?
}
?>
